const axios = require('axios');
const BASE_URL = "http://47.97.65.11"+ ':' + "3001";
// const BASE_URL = "http://localhost"+ ':' + "3001"

// export class BoolDataSearchArgs{
// }
// export class RealDataSearchArgs{
// }

// 获取实时布尔数据
export async function serachBoolData(
) {
  try {
    const res = await axios({
      method: 'get',
      url: BASE_URL + '/bool-data',
      params: {
      },
      withCredentials: false
    })
    return res;
  }
  catch (error) {
    // console.error(error)
    throw error;
  }
}
// 获取实时实数数据
export async function serachRealData(
  ) {
    try {
      const res = await axios({
        method: 'get',
        url: BASE_URL + '/real-data',
        params: {
        },
        withCredentials: false
      })
      return res;
    }
    catch (error) {
      console.error(error)
    }
  }
  
